# Library target
add_library(container_lib SHARED
    container.cpp
)

# Set library properties
set_target_properties(container_lib PROPERTIES
    VERSION ${CONTAINER_LIB_VERSION}
    SOVERSION ${CONTAINER_LIB_VERSION_MAJOR}
    PUBLIC_HEADER "include/container.hpp"
)

target_include_directories(container_lib
    PUBLIC
        $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
        $<INSTALL_INTERFACE:include>
)

# Install rules
include(GNUInstallDirs)
install(TARGETS container_lib
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)